package com.cct.digitalarchapi.service;

import com.cct.digitalarchapi.common.Response;
import com.cct.digitalarchapi.pojo.ArchCategory;
import com.cct.digitalarchapi.pojo.RootList;
import com.cct.digitalarchapi.pojo.StaffList;
import org.springframework.web.multipart.MultipartFile;

/**
 * @FileName UserService
 * @Description 档案管理人员类
 * @Author Created by chenmingzhe
 * @Date 2023/11/19
 **/

public interface UserService {

    Response loginByManager(String username,String psswd);

    Response loginByUser(String staffCode,String psswd);

    Response addManager(RootList rootList);

    Response addUser(StaffList staffList);

    Response deleteManager(String username);

    Response deleteUser(int staffId);

    Response qryAllManager(int pageNum,int pageSize);

    Response qryUserByDept(String archDeptCode,int pageNum,int pageSize,String staffName,String staffCode);

    Response updatePasswd(String username,String oldPasswd,String newPasswd,String type);

    Response updateManager(RootList rootList);

    Response updateUser(StaffList staffList);

    Response resetPasswd(String username,String type);

    Response getStaffCode();

    Response getMessageByUser(String username,int state,int pageNum,int pageSize,int type);

    Response updateMessageState(int messId,int state);

    Response getSystemInfo();

    Response uploadWaterMark(MultipartFile file);



}
